//绝对路径
console.log(__dirname)

const fs = require('fs')

fs.readFile(__dirname + '/files/test.txt', 'utf-8', function (err, dataStr) {
  if (err) return console.log(err)

  console.log(dataStr)
})

// fs.readFile('./files/test.txt', 'utf-8', function (err, dataStr) {
//   if (err) return console.log(err)

//   console.log(dataStr)
// })
